<?php

$id = $_GET['id'];

//$re = selectAll('comments',"Id=$id");
//print_r($re) ;
//die;

$result = delete('comments', $id);
if($result>=0)
{
	echo '删除成功';
	header('Refresh:1;index.php?a=admin&b=comments&c=index');
	die;
}else
{
	echo '删除失败';
	header('Refresh:1;index.php?a=admin&b=comments&c=index');
	die;	
}



?>